import axios from 'axios';
import { req } from './axiosFun';

/**
 * 支付配置信息
 **/
// 支付配置信息-获取支付配置信息列表
export const CoachList = (params) => { return req("post", "/api/coach/list", params) };
// 支付配置信息-保存支付配置信息
export const CoachSave = (params) => { return req("post", "/api/coach/save", params) };
// 支付配置信息-删除支付配置信息
export const Coachdelete = (params) => { return req("post", "/api/coach/delete", params) };
//export const MachineConfigDelete = (params) => { return axios.delete("/api/MachineConfig/delete?ids=" + params + "&token=" + localStorage.getItem('logintoken')).then(res => res.data) };

/**
 * 课程管理
 **/
// 获取课程列表
export const CourseList = (params) => { return req("post", "/api/course/list", params) };
// 删除课程
export const CourseDelete = (params) => { return req("post", "/api/course/delete", params) };
// 获取教练列表用于下拉选择
export const CoachForm = (params) => { return req("post", "/api/course/coachlist") };
// 获取数据统计
export const CoachStatistic = (params) => { return req("post", "/api/course/statistic") };
// 统计约课人次
export const ReserveStatistic = (params) => { return req("post", "/api/course/reserve/statistic") };

// 统计充值
export const TradeStatistic = (params) => { return req("post", "/api/user/trade") };

